//
//  AddressCell.m
//  XDBaseFrameWork
//
//  Created by xindao on 14-10-29.
//  Copyright (c) 2014年 XD-XY. All rights reserved.
//

#import "AddressCell.h"

@implementation AddressCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self makeViews];
    }
    return self;
}

- (void)makeViews{
    _nameLB = [UILabel initLabelText:nil andRect:CGRectMake(20, 0, UI_SCREEN_WIDTH -25, 60) andBackGroudColor:[UIColor clearColor] andTextFont:[UIFont systemFontOfSize:16] andTextColor:UIColorFromRGB(0x453d35) andTextAlignment:NSTextAlignmentLeft];

    _nameLB.font = [UIFont boldSystemFontOfSize:13.0f];
    _nameLB.numberOfLines = 0;// 不可少Label属性之一

    [self.contentView addSubview:_nameLB];

    _redPointIV = [[UIImageView alloc] initWithFrame:CGRectMake(9, 25, 8, 8)];
    _redPointIV.backgroundColor = [UIColor redColor];
    _redPointIV.layer.masksToBounds = YES;
    _redPointIV.layer.cornerRadius = 4;
    [self.contentView addSubview:_redPointIV];

    _topView = [[XDTools sharedXDTools] createSeparatorLineWithRect:CGRectMake(0, 0, UI_SCREEN_WIDTH, 1.0)];
    _topView.backgroundColor = [UIColor lightGrayColor];
    [self.contentView addSubview:_topView];

    _downView = [[XDTools sharedXDTools] createSeparatorLineWithRect:CGRectMake(0, 43.5f, UI_SCREEN_WIDTH, 1.0)];
    _downView.backgroundColor = [UIColor lightGrayColor];
    [self.contentView addSubview:_downView];
}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
